<extend name="Public/base"/>
<block name="body">
  <div class="fixed-bar" id="User_Bar">
    <div class="item-title">
      <h3>模块</h3>
      <ul class="tab-base">
        <li><a href="{:U('Admin/Module/index')}"><span>列表</span></a></li>
        <li><a class="current" href="#"><span>安装</span></a></li>
      </ul>
    </div>
  </div>
  <form id="User_Form" method="post" action="{:U('Module/install')}">
    <table class="table tb-type2 nobdb">
      <tbody>
      <tr>
        <th width="80">模块名称：</th>
        <td >{$modulename}</td>
      </tr>
      <tr>
        <th width="80">模块简介：</th>
        <td >{$introduce}</td>
      </tr>
      <tr>
        <th width="80">作者：</th>
        <td >{$author}</td>
      </tr>
      <tr>
        <th width="80">E-mail：</th>
        <td >{$authoremail}</td>
      </tr>
      <tr>
        <th width="80">作者主页：</th>
        <td >{$authorsite}</td>
      </tr>
      <tr>
        <th width="80">依赖模块：</th>
        <td ><volist name='rely_module' id='vo'>
        <php>$v_m=validate_module($vo['name'],$vo['version']);</php>
        <switch name="v_m" >
        <case value="1"><a href="{$vo.site}" target="_blank" class="easyui-linkbutton bon2">{$vo.title}[{$vo.name} {$vo.version}] 模块不存在</a></case>
        <case value="2"><a href="{$vo.site}" target="_blank" class="easyui-linkbutton bon2">{$vo.title}[{$vo.name} {$vo.version}] 版本过低</a></case>
        <case value="3"><a href="#" class="easyui-linkbutton bon2">{$vo.title}[{$vo.name} {$vo.version}] 模块未启用</a></case>
        <case value="9"><a href="#" class="easyui-linkbutton bon1">{$vo.title}[{$vo.name} {$vo.version}]</a></case>
        <default />未知错误
        </switch></volist></td>
      </tr>
      <tr>
        <th width="80">依赖插件：</th>
        <td ><volist name='rely_addons' id='vo'>{$vo.name}{$vo.title}{$vo.version}{$vo.site}<br/></volist></td>
      </tr>
      </tbody>
      <tfoot>
        <tr class="tfoot">
          <td colspan="2"><a class="easyui-linkbutton" href="JavaScript:void(0);" onclick="$('#User_Form').submit();" data-options="iconCls:'iconfont icon-edit'"><span style="font-size: 14px; font-weight: 600;">确定安装</span></a></td>
        </tr>
      </tfoot>
    </table>
	<input type="hidden" name="id" value="{$id}">
</form>
</block>
